//
//  main.cpp
//  1428
//
//  Created by 洋犀利 on 2019/9/8.
//  Copyright © 2019 洋犀利. All rights reserved.
//

#include <iostream>
using namespace std;
int fs[101] = {0};
int look[101] = {0};
int much;
int now;

int main(int argc, const char * argv[]) {
    cin>>much;
    for(int i=0;i<much;i++){
        cin>>fs[i];
    }
    //判定开始，有多少鱼可爱
    for(int i=0;i<much;i++){
        for(int k=0;k<i;k++){
            if(fs[i]>fs[k]){
                now++;
            }
        }
        look[i] = now;
        now = 0;
    }
    //输出语句
    for(int i=0;i<much;i++){
        cout<<look[i]<<" ";
    }
    
    return 0;
}
